package com.fw.system.web.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信步数表
 * </p>
 *
 * @author ${author}
 * @since 2023-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbWechatFoot对象", description="微信步数表")
public class TbWechatFoot extends Model<TbWechatFoot> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    @TableId(value = "id")
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "获取日期字符串")
    @TableField("gain_time")
    private String gainTime;

    @ApiModelProperty(value = "获取的微信步数")
    @TableField("wechat_foot")
    private Integer wechatFoot;

    @TableField("create_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField("update_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
